<template>
	<view >
		
	</view>
</template>

<script>
	var watermark = uni.requireNativePlugin("WH-WatermarkPhoto")
	export default {
		data() {
			return {
			}	
		},
		onLoad(e) {
			// #ifdef APP-PLUS
			const that = this
			watermark.useWatermarkPhotoWithOptions({
			  'title': '测试title',
			   //值
			  'content': '测试conten12312312t',
			  'area': '测试area123123',
			  'time': '2021-11-08 02:25',
			  'weather': '测试weather',
			  'location': '测试上海市',
			  //标题
			  'contentTitle': '拍摄内容：', 
			  'areaTitle': '拍摄区域：',
			  'weatherTitle': '天气：',
			  'locationTitle': '拍摄地址：',
			  'timeTitle': '拍摄时间：',
			    //是否显示 传 1 是显示 不传则不现实
			   "contentShow": 1, 
			   // "areaShow": 1, 
			   "timeShow": 1,
			   "weatherShow": 1,
			    "locationShow": 1,
			
			    "titleBackgroundColor": "#252145",  //水印头部的背景颜色
			    "contentBackgroundColor": "#be1480", //水印内容的背景颜色
			
			},
			(ret) => {
			    that.title = `file://${ret.imgPath}`
			})
			// #endif
		},
		onReady() {
		
		},
		onShow() {
			
		},
		onUnload() {
			
		},
		methods: {
		},
	}
</script>

<style lang="less">
	
	
</style>

